package com.admin.education.dataTransferObject.designations.request;

import lombok.Data;

import javax.validation.constraints.DecimalMax;
import javax.validation.constraints.DecimalMin;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

@Data
public class CreateDesignationsRequest {
    private String name;
    @DecimalMin("0")
    @DecimalMax("100")
    @NotNull
    private BigDecimal proportion;
}
